$(function () {
    var code = "";
    if (window.location.href.indexOf("code") != -1) {
        code = window.location.href.split("code=")[1].split("&state")[0];
    }
    $.ajax({
        url: Feng.ctxPath + "/wxWeixin/getOpenid",
        type: "GET",
        data: {"code": code},
        success: function (data) {

        },
        error: function (data) {

        }
    });
});
goBackPersonalCenter = function () {
    window.location.href = Feng.ctxPath + "/integralMallWeixin/personalCenter" ;
};
goBackScoreShopping = function () {
    var area=("#area").val();
    if(area=="yiya_wh"){
        window.location.href = Feng.ctxPath + "/integralMallWeixin/scoreShopping" ;
    }else if(area=="yiya_es"){
        window.location.href = Feng.ctxPath + "/integralMallWeixin/esScoreShopping";
    }
};
goBackIntegralRecordNull = function () {
    if($("#tabId").val()==1){
        window.location.href = Feng.ctxPath + "/integralMallWeixin/personalCenter";
    } else {
        window.location.href = Feng.ctxPath + "/integralMallWeixin/scoreShopping";
    }
};